CMAKE_MINIMUM_REQUIRED(VERSION 2.6)
PROJECT(IR)
SET(CMAKE_CXX_COMPILER g++)
SET(CMAKE_CXX_FLAGS_DEBUG "$ENV{CXXFLAGS} -g -ggdb")
SET(CMAKE_CXX_FLAGS_RELEASE "$ENV{CXXFLAGS} -g")
ADD_DEFINITIONS(-D_LINUX_ -Wall)
#AUX_SOURCE_DIRECTORY(. SRCS)
AUX_SOURCE_DIRECTORY(../src/lib LIB)
LINK_DIRECTORIES(./src/lib/)
ADD_EXECUTABLE(searcher ${LIB} ../src/searcher.cc ../src/search.cc)
TARGET_LINK_LIBRARIES(searcher pthread)
SET(EXECUTABLE_OUTPUT_PATH  ../)
